Skip to content

🔥 Remove client-side TTS prefetch in favour of native app control#869

Draft
williamchong wants to merge 1 commit intolikecoin:developfrom
williamchong:feature/tts-sync
Draft

🔥 Remove client-side TTS prefetch in favour of native app control#869
williamchong wants to merge 1 commit intolikecoin:developfrom
williamchong:feature/tts-sync

Conversation

@williamchong
Copy link
Copy Markdown
Member

Move segment prefetching responsibility to the native app layer, which has better visibility into playback state and buffer needs

Should improve latency since likecoin/3ook-com-app#12 and in future native dual player support

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes client-side segment prefetching from the Nuxt native-audio bridge so that TTS buffering/prefetch behavior is controlled by the native app layer (which can better coordinate playback state and future dual-player needs).

Changes:

  • Removed the cached segment/getAudioSrc state and the prefetchSegment() fetch-with-Range warmup behavior.
  • Stopped triggering “next segment” prefetch on load() and on trackChanged / remotePrevious native events.

Move segment prefetching responsibility to the native app layer,
which has better visibility into playback state and buffer needs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants